﻿using System;
using System.Collections.Generic;
using System.Text;
using System.AddIn.Pipeline;
using Bookvar.AddIns.Contracts;
using Bookvar.AddIns.AddInViews;
using Bookvar.ObjectModel;

namespace Bookvar.AddIns.AddinAdapters
{
    [AddInAdapter]
    public class EditableBookvarViewToContractAddinAdapter : ContractBase, IEditableBookvarContract
    {
        private EditableBookvarAddinView view;

        public EditableBookvarViewToContractAddinAdapter(EditableBookvarAddinView view)
        {
            this.view = view;
        }

        public virtual Topic Execute(Topic topic)
        {
            Topic result = view.Execute(topic);
            return result;
        }

		public virtual AddinInfo Info
		{
			get { return view.Info; }
		}


	}
}
